import Vue from 'vue'
import Router from 'vue-router'

import Chat from '../components/Chat'
import Friend from '../components/Friend'
import Set from '../components/Set'
import Detail from '../components/Detail'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/chat', component: Chat },
    { path: '/friend', component: Friend },
    { path: '/set', component: Set },
    { path: '/', redirect: '/chat' },
    { path:'/detail/:petname',component :Detail}
  ]  
})
